﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <!-- Styles -->
    <!-- <Setter Property="" Value=""/> -->
    <Style x:Key="MainWindow" TargetType="{x:Type Window}">
        <Setter Property="Height" Value="387"/>
        <Setter Property="Width" Value="446"/>
    </Style>
    <Style TargetType="{x:Type Slider}">
        <Setter Property="Maximum" Value="1"/>
        <Setter Property="Minimum" Value="0"/>
        <Setter Property="TickFrequency" Value=".05"/>
        <Setter Property="TickPlacement" Value="BottomRight"/>
        <Setter Property="IsSnapToTickEnabled" Value="True"/>
        <Setter Property="IsMoveToPointEnabled" Value="True"/>
    </Style>
    <Style x:Key="SearchLimitLabel" TargetType="{x:Type Label}">
	<Setter Property="HorizontalAlignment" Value="Center"/>
    </Style>
    <Style x:Key="SearchTextBox" TargetType="{x:Type TextBox}" BasedOn="{StaticResource ToolBarTextBox}">
        <Setter Property="Width" Value="150"/>
    </Style>
    <Style x:Key="ProductList" TargetType="{x:Type ListBox}">
        <Setter Property="SelectionMode" Value="Single"/>
    </Style>
    <Style TargetType="{x:Type ListBoxItem}">
        <Setter Property="Padding" Value="3"/>
    </Style>

    <!-- DataTemplate Styles -->
    <Style x:Key="ProductItemContainer" TargetType="{x:Type StackPanel}">
        <Setter Property="Width" Value="100"/>
        <Setter Property="Orientation" Value="Vertical"/>
    </Style>
    <Style x:Key="ProductItemIcon" TargetType="{x:Type Image}">
        <Setter Property="Width" Value="32"/>
        <Setter Property="Height" Value="32"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
    </Style>
    <Style x:Key="ProductItemName" TargetType="{x:Type TextBlock}">
        <Setter Property="TextWrapping" Value="Wrap"/>
        <Setter Property="TextAlignment" Value="Center"/>
        <Setter Property="FontWeight" Value="SemiBold"/>
    </Style>
    <Style x:Key="ProductItemKeys" TargetType="{x:Type TextBlock}">
        <Setter Property="TextWrapping" Value="Wrap"/>
        <Setter Property="TextAlignment" Value="Center"/>
        <Setter Property="FontWeight" Value="Normal"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding Path=KeyCount}" Value="0">
                <Setter Property="Visibility" Value="Collapsed"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="ProductItemSearchProgressBar" TargetType="{x:Type ProgressBar}">
        <Setter Property="Width" Value="100"/>
        <Setter Property="Height" Value="10"/>
        <Setter Property="Maximum" Value="1"/>
        <Setter Property="Minimum" Value="0"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding Path=SearchSimilarity}" Value="0">
                <Setter Property="Visibility" Value="Collapsed"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="ProductItemSearchToolTip" TargetType="{x:Type StackPanel}">
        <Style.Triggers>
            <DataTrigger Binding="{Binding Path=SearchSimilarity}" Value="0">
                <Setter Property="Visibility" Value="Collapsed"/>
            </DataTrigger>
        </Style.Triggers>
        <Setter Property="Orientation" Value="Horizontal"/>
    </Style>
</ResourceDictionary>